<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\Route;
// return [
//     '__pattern__' => [
//         'name' => '\w+',
//     ],
//     '[hello]'     => [
//         ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
//         ':name' => ['index/hello', ['method' => 'post']],
//     ],

// ];
Route::rule(':version/news/:id', 'api/:version.News/read');
Route::rule(':version/news/', 'api/:version.News/reader');
Route::rule(':version/word/', 'api/:version.word/word');
Route::rule(':version/del/:id', 'api/:version.News/del');
Route::rule(':version/add/', 'api/:version.News/add');
Route::rule(':version/edit/', 'api/:version.News/edit');
Route::rule(':version/image/', 'api/:version.Images/image');
Route::rule(':version/delimg/', 'api/:version.Images/delimg');
Route::rule(':version/shop/', 'api/:version.Shop/reader');
Route::rule(':version/cate/', 'api/:version.Shop/category');
Route::rule(':version/dimg/', 'api/:version.News/dimg');
Route::rule(':version/Ad/', 'api/:version.Ad/reader');
Route::rule(':version/zt/', 'api/:version.Ad/zt');
Route::rule(':version/AdAdd', 'api/:version.Ad/add');
Route::rule(':version/Addel', 'api/:version.Ad/del');
Route::rule(':version/AddelArr', 'api/:version.Ad/delArr');